#ifndef MOTION_SENSOR_H
#define MOTION_SENSOR_H

#include "Nano100Series.h"
#include "Common.h"

#define MOTION_SENSOR_CS2_PORT	PB
#define MOTION_SENSOR_CS2_BIT	BIT11
#define MOTION_SENSOR_CS2_PIN	PB11

void MotionSensorInit(void);
void MotionSensorGetAcc(uint8_t *buf, uint32_t n);
void MotionSensorGetGyro(uint8_t *buf, uint32_t n);
void MotionSensorGetMag(uint8_t *buf, uint32_t n);

#endif
